package com.ubxtech.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * PK primary key
 * 想要实现不配置FieldFill策略也能填充可以在CustomMybatisPlusInterceptor直接填充id值
 * @author Victor.Xiao
 * @since 2022-01-07 16:36
 **/
@Data
public class IdEntity<PK> {

    @TableId(value = "id", type = IdType.INPUT)
    protected PK id;
}
